import request from './request'

// 登录
export const login = (email:string,password:string) => {
    return request.post('/api/auth/login',{email:email,password:password})
}
// 注册
export const register = (list:any) => {
    return request.post('/api/auth/register',list)
}

// 退出登录
export const loginOut = () => {
    return request.post('/api/auth/logout')
}